.PHONY:all
all:otherExe mycommand
otherExe:otherExe.cpp
	g++ -o $@ $^

mycommand:mycommand.c
	gcc -o $@ $^
.PHONY:clean
clean:
	rm -f mycommand otherExe

